package com.gwq.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gwq.dto.MessageDto;
import com.gwq.entity.Message;
import com.gwq.entity.MessageFile;
import com.gwq.mapper.MessageFileMapper;
import com.gwq.mapper.MessageMapper;
import com.gwq.param.MessageParam;
import com.gwq.service.MessageFileService;
import com.gwq.service.MessageService;
import com.gwq.utils.DateUtils;
import com.gwq.utils.LocalCacheUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.rmi.ServerException;
import java.util.*;
import java.util.stream.Collectors;

@Service
public class MessageFileServicelmpl extends ServiceImpl<MessageFileMapper, MessageFile> implements MessageFileService {



    @Autowired
    private MessageFileMapper messageFileMapper;


    @Override
    public void addFiles(List<MessageFile> message) {
        saveBatch(message);
    }
}
